import { findTypeByValue, findTypeByLabel } from '@/utils/findType'
import * as types from "./types"

// 渠道Table
export const configTableFrame = [
  { 
    prop: "num", 
    label: "序号", 
    minWidth: "50px", 
    tooltip: true 
  },
  { 
    prop: "name", 
    label: "案例名称",
    minWidth: "150px",
    formatter: (row) => {
      return row.caseVo.name
    }
  },
  {
    prop: "doctor",
    label: "医生",
    minWidth: "100px",
    formatter: (row) => {
      return row.userVo.name
    }
  },
  {
    prop: "content",
    label: "内容",
    minWidth: "100px"
  },
  {
    prop: "replyNum",
    label: "回复数",
    minWidth: "80px"
  },
  {
    prop: "praiseNum",
    label: "点赞数",
    minWidth: "80px"
  },
  { 
    label: "操作", 
    slotName: "operate", 
    fixed: "right",
    minWidth: "100px"
  },
];


export const searchFrame = [
  { 
    label: "案例id", 
    key: "caseId", 
    type: 1
  }
]
